package com.wh.accesscontrol.dao;

import com.wh.accesscontrol.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface EmployeeMapper {
    int deleteByPrimaryKey(@Param("id") Integer id, @Param("number") Integer number, @Param("type") Integer type);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(@Param("id") Integer id, @Param("number") Integer number, @Param("type") Integer type);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);

    Employee findByNumber(int id);
}